package com.example.threemoni.util;

import lombok.Data;

/**
 * @Author 宋伟宁
 * @Date 2023/10/25
 * @Version 1.0
 **/
@Data
public class R<T> {
    private Integer code;
    private Boolean flag;
    private String message;
    private T data;

    public R() {
    }

    public R(Integer code, Boolean flag, String message, T data) {
        this.code = code;
        this.flag = flag;
        this.message = message;
        this.data = data;
    }

    public R(Integer code, Boolean flag, String message) {
        this.code = code;
        this.flag = flag;
        this.message = message;

    }
}
